This readme file provides the R code and a description of the input data for "Is Hybrid Work the Best of Both World? Evidence from a Field Experiment" (Choudhury, Khanna, Makridis, and Schirmann, REStat).

*************
*** SETUP ***
*************

All code is self-contained and documented in "ckms_hybrid.R" of the base directory.

Because of our small sample size and the demographic information available in the source files, we do not supply the actual data here. However, we do supply four Excel sheets of identical format and a single mock row in each file conforming to the expected format.

The following parameters should be changed:
* PATH_WORKING_DIRECTORY: Set this to the folder containing the code and data.
* TABLE_OUTPUT_TEX: Output defaults to LaTeX files. To generate HTML files instead (for convenience), change this parameter to FALSE.

Executing the code as-is will produce all tables and figures in the article and its Online Appendix, with the exception of Online Appendix Tables G.1 and G.2. Follow the instructions in the code to generate these tables.

************************
*** SOFTWARE VERSION ***
************************
The results of sessionInfo() call in R after executing the code are reported below:

R version 4.3.2 (2023-10-31)Platform: aarch64-apple-darwin20 (64-bit)Running under: macOS Sonoma 14.1.2Matrix products: defaultBLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0locale:[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8time zone: America/New_Yorktzcode source: internalattached base packages:[1] stats     graphics  grDevices utils     datasets  methods   base     other attached packages: [1] forcats_1.0.0    kableExtra_1.3.4 MASS_7.3-60      ggplot2_3.4.4    magrittr_2.0.3   [6] htmlTable_2.4.2  sandwich_3.0-2   lubridate_1.9.3  dplyr_1.1.4      readxl_1.4.3    [11] stargazer_5.2.3 loaded via a namespace (and not attached): [1] utf8_1.2.4        generics_0.1.3    xml2_1.3.6        stringi_1.8.2     lattice_0.22-5    [6] digest_0.6.33     evaluate_0.23     grid_4.3.2        timechange_0.2.0  fastmap_1.1.1    [11] cellranger_1.1.0  backports_1.4.1   httr_1.4.7        rvest_1.0.3       fansi_1.0.5      [16] viridisLite_0.4.2 scales_1.3.0      textshaping_0.3.7 cli_3.6.1         crayon_1.5.2     [21] rlang_1.1.2       munsell_0.5.0     withr_2.5.2       tools_4.3.2       checkmate_2.3.1  [26] colorspace_2.1-0  webshot_0.5.5     vctrs_0.6.5       R6_2.5.1          zoo_1.8-12       [31] lifecycle_1.0.4   stringr_1.5.1     htmlwidgets_1.6.4 ragg_1.2.6        pkgconfig_2.0.3  [36] pillar_1.9.0      gtable_0.3.4      glue_1.6.2        systemfonts_1.0.5 xfun_0.41        [41] tibble_3.2.1      tidyselect_1.2.0  rstudioapi_0.15.0 knitr_1.45        farver_2.1.1     [46] htmltools_0.5.7   labeling_0.4.3    svglite_2.1.2     rmarkdown_2.25    compiler_4.3.2   